def print_file_info(file_name):
    """
    读取文件内容
    :param file_name:
    :return:
    """
    try:
        with open(file_name, "r", encoding="UTF-8") as f:
            return f.read()
    except FileNotFoundError as e:
        print("文件不存在：", e)


def append_to_file(file_name, data):
    """
    文件内容追加
    :param file_name:
    :param data:
    :return:
    """
    with open(file_name, "a", encoding="UTF-8") as f:
        f.write(data)
        f.flush()
